<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
	String orgId = request.getParameter("orgId");
	String str = request.getAttribute("str")+"";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<base target="_self" />
		<title>用户信息添加</title>
		<meta http-equiv="X-UA-Compatible" content="IE=7" />
		<%@ include file="../jslib/jquerylib.jsp" %>
		
		<script type='text/javascript' src="<%=request.getContextPath() %>/jslib/jquery.form.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/jquery.validate.min.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/additional-methods.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/password_strength_plugin.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/QuickUpload.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/CJL.0.1.min.js"></script>
		<script type='text/javascript' src="<%=request.getContextPath() %>/jslib/My97DatePicker/WdatePicker.js" defer="defer"></script>
		
		<style type="text/css">
			.top_testresult {
				font-weight: bold;
				font-size: 13px;
				font-family: arail, helvetica, san-serif;
				color: #666;
				padding: 0;
				margin: 0 0 2px 0;
				width: 350px;
			}
			html{overflow-x:hidden;}
		</style>
		<script type="text/javascript">
         	var api = frameElement.api;
	         if (api!=undefined)
	         {
	         	var W = api.opener;
	         }
        </script>
        <c:if test="${requestScope.message != null}">
	    	<script type="text/javascript">
			     alert("<c:out value='${requestScope.message}'></c:out>");
			     api.close();
			     W.gridSearch();
	        </script>
	    </c:if>
		<script type="text/javascript">
	    var treeIsLoad = false;
	    var postreeIsLoad = false;
	    $(document).ready(function() {
		   
		   var options = {
	    	    url:'<%=request.getContextPath() %>/system/saveUser.action?orgId='+<%= orgId %>,
	    	    beforeSubmit: checkForm,
	    	    dataType:'json',
	    	    success: function(data) {
	    	      if(data.result=='success'){
						alert("添加成功");
						api.close();
	       			 	W.refreshadd();
	    	      }
	    	}};
			$('#submitBtn').click(function(){
				$('#pageFrom input').keyup(trimkeyup);
			    $('#pageFrom').ajaxSubmit(options);
			    return false;
		     });
		    $('#cancelBtn').click(function(){
				api.close();
		    });
         });
        function changeDate(){
            var entryDate = $("#entryDate").val();
        	var arr = entryDate.split("-");
        	if(Number(<%=str%>)-Number(arr[0])<0){
        		alert("工作年限小于当前时间");
        		$("#workYears").val("");
        	}else{
        	
        		$("#workYears").val(Number(<%=str%>)-Number(arr[0]));
        	}
        }
	    function checkForm(){
			var flag = true;
			/*if($("#loginname").val()==""){
				alert("用户名不能为空!");
				$("#loginname").focus();
				return false;
			}*/
			if($("#loginname").val()!="")
			{
				if(!alphanumeric($("#loginname").val())){
					alert("用户名只能输入英文、数字、下划线!");
					$("#loginname").focus();
					return false;
				}else if(!loginNameCountintlen($("#loginname").val())){
					alert("用户名最多为40个字符,字符输入超出限制!");
					$("#loginname").focus();
					return false;
				}else if(!(flag = checkloginName())){
					$("#loginname").focus();
					return false;
				}
			}
			
			
			if($("#username").val()==""){
				alert("姓名不能为空!");
				$("#username").focus();
				return false;
			}else if(!checkExp($("#username").val())){
				alert("姓名不能含有如下特殊符号:\" # $ \, \'");
				$("#username").focus();
				return false;
			}else if(!userNameCountintlen($("#username").val())){
				alert("姓名最多为40个字符,字符输入超出限制!");
				$("#username").focus();
				return false;
			}
			
			if($("#companyTel").val()!= ""){
				if(!checkPhone($("#companyTel").val())){
					alert("请输入正确的单位电话号码,如:0920-29392929!");
					$("#companyTel").focus();
					return false;
				}
			}
			
			if($("#fixedPhone").val()!= ""){
				if(!checkPhone($("#fixedPhone").val())){
					alert("请输入正确的家庭电话号码,如:0920-29392929!");
					$("#fixedPhone").focus();
					return false;
				}
			}
			if($("#mobile").val() != ""){
				if(!checkMobile($("#mobile").val())){
					alert("请输入正确的移动电话!");
					$("#mobile").focus();
					return false;
				}
			}
			
			if($("#email").val()!= ""){
				if(!checkEmail($("#email").val())){
					alert("请输入电子邮件地址,如a@example.com!");
					$("#email").focus();
					return false;
				}
			}
			
			if(!addressCountintlen($("#address").val())){
				alert("办公地址最多为40个字符,字符输入超出限制!");
				$("#address").focus();
				return false;
			}
			/*if($("#rolename").val()==""){
				alert("所属角色不能为空!");
				$("#rolename").focus();
				return false;
			}*/
			if($("#active").val()==""){
				alert("用户状态不能为空!");
				$("#active").focus();
				return false;
			}
			if($("#securityClass").val()==""){
				alert("可用密级不能为空!");
				$("#securityClass").focus();
				return false;
			}
			
			
			if($("#idFile").val()!= ""){
				if(!checkPic($("#idFile").val())){
					alert("头像图片格式不对,请上传jpg、jpeg、bmp、gif、png类型的图片!");
					$("#idFile").focus();
					return false;
				}
			}
			
			if($("#signFile").val()!= ""){
				if(!checkPic($("#signFile").val())){
					alert("签名图片格式不对,请上传jpg、jpeg、bmp、gif、png类型的图片!");
					$("#signFile").focus();
					return false;
				}
			}
			
			if(!jobNameCountintlen($("#jobName").val())){
				alert("岗位名称最多为40个字符,字符输入超出限制!");
				$("#jobName").focus();
				return false;
			}
			
			if(!checkExp($("#yourMajor").val())){
				alert("所学专业不能含有如下特殊符号:\" # $ \, \'");
				$("#yourMajor").focus();
				return false;
			}else if(!yourMajorCountintlen($("#yourMajor").val())){
				alert("所学专业最多为40个字符,字符输入超出限制!");
				$("#yourMajor").focus();
				return false;
			}
			
			
			if(!checkExp($("#age").val())){
				alert("年龄不能含有如下特殊符号:\" # $ \, \'");
				$("#age").focus();
				return false;
			}else if(!ageCountintlen($("#age").val())){
				alert("年龄最多为40个字符,字符输入超出限制!");
				$("#age").focus();
				return false;
			}
			
			if(!userdescCountintlen($("#userdesc").val())){
				alert("用户描述最多为250个字符,字符输入超出限制!");
				$("#userdesc").focus();
				return false;
			}
			
		}
	    //过滤表单的前后空格
		function trimkeyup(e) {
		     lucene_objInput = $(this);
		     if (e.keyCode != 38 && e.keyCode != 40 && e.keyCode != 13) {
		        var im = $.trim(lucene_objInput.val());
		       lucene_objInput.val(im); 
		    }
		} 
	    //验证唯一性
	    function checkloginName(){
			var flag = true;
			
			$.ajax({
			   type: "POST",
			   async: false,//取消异步提交
			   url: "findUsersByloginName.action",
			   dataType: "json",
			   data: {
			   		loginname: function(){
						return encodeURIComponent($("#loginname").val());
					}
			   },
			   success: function(data){
			   	 if(data.result != "success"){
			     	alert( "存在相同的登陆名称!" );
			     	flag = false;
			     }
			   }
			}); 
			return flag;
		}
	    //用户名只能输入英文、数字、下划线
	    function alphanumeric(inputData){ 
			var regEx = new RegExp(/^\w+$/i);
			var result = inputData.match(regEx);
			if (result == null) {
				return false;
			}
			return true;
		}
	    //用户名最多为40个字符,字符输入超出限制
	    function loginNameCountintlen(input){
			var result = $("#loginname").val().length;
			if (result > 40) {
				return false;
			}else{
				return true;
			}
		}
		
		//所学专业最多为40个字符,字符输入超出限制
	    function yourMajorCountintlen(input){
			var result = $("#yourMajor").val().length;
			if (result > 40) {
				return false;
			}else{
				return true;
			}
		}
		
		//年龄最多为40个字符,字符输入超出限制
	    function ageCountintlen(input){
			var result = $("#age").val().length;
			if (result > 40) {
				return false;
			}else{
				return true;
			}
		}
	    //姓名最多为40个字符,字符输入超出限制
	    function userNameCountintlen(input){
			var result = $("#username").val().length;
			if (result > 40) {
				return false;
			}else{
				return true;
			}
		}
		//验证特殊字符
		function checkExp(inputData){ 
			//var regEx = new RegExp(/^(([^\^\.<>%&',:;=?$"'#@!~\]\[{}【】￥（）！·‘’”“。，、？：；—|\/\\/`\|])*)$/);
			var regEx = new RegExp(/^(([^$,"'#])*)$/);
			var result = inputData.match(regEx);
			if (result == null) {
			return false;
			}
			return true;
		}
		//验证公司电话
			function checkPhone(inputData){ 
				var regEx = new RegExp(/^((\(\d{2,3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}(\-\d{1,4})?$/);
				var result = inputData.match(regEx);
				if (result == null) {
					return false;
				}
				return true;
			}
		    //验证移动电话
			function checkMobile(inputData){ 
				var regEx = new RegExp(/^[0-9]{11}$/);
				var result = inputData.match(regEx);
				if (result == null) {
					return false;
				}
				return true;
			}
		    
		    //验证电子邮件
			function checkEmail(inputData){ 
				var regEx = new RegExp(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/);
				var result = inputData.match(regEx);
				if (result == null) {
					return false;
				}
				return true;
			}
		    //验证图片
			function checkPic(inputData){ 
				var regEx = new RegExp(/.+(.JPEG|.jpeg|.JPG|.jpg|.GIF|.gif|.BMP|.bmp|.PNG|.png)$/);
				var result = inputData.match(regEx);
				if (result == null) {
					return false;
				}
				return true;
			}
		    //办公地址内容过多的限制
		    function addressCountintlen(input){
				var result = $("#address").val().length;
				if (result > 40) {
					return false;
				}else{
					return true;
				}
			}
		    //岗位名称内容过多的限制
		    function jobNameCountintlen(input){
				var result = $("#jobName").val().length;
				if (result > 40) {
					return false;
				}else{
					return true;
				}
			}
		    //用户描述内容过多的限制
		    function userdescCountintlen(input){
				var result = $("#userdesc").val().length;
				if (result > 250) {
					return false;
				}else{
					return true;
				}
			}
        //弹出窗口选择角色
        function selectRole(){
               var url = "<%=request.getContextPath()%>/resource/choose/user_choose_role.jsp?roleIds="+$('#roleIdStr').val();
                var roles = showModalDialog(url,null,"dialogHeight:540px;dialogWidth:675px;")
                if(!$.isEmptyObject(roles)){
                    var roleIds = [];
                    var roleNames = [];
                    for(var i=0;i<roles.length;i++){
                        roleIds.push(roles[i]['roleid']);
                        roleNames.push(roles[i]['rolename']);
                    }
                    $('#roleIdStr').val(roleIds.join());
                    $('#rolename').val(roleNames.join());
                }       
        }
        //弹出窗口选择组织
        function selectOrg(){
           var array = openModalDialog('<%=request.getContextPath()%>/system/selectOrg.jsp',"650px","400px");
            if(typeof(array) == "undefined"){
                    return false;
                }
              if (array!=null){
                var json = eval('(' + array + ')');
                $("#orgNameLabel").val(json.orgName);
                $("#orgId").val(json.orgId);
              } 
            window.location.reload();
        }

        //下拉树选择组织
        function beforeClick(treeId, treeNode) {
            var check = (treeNode);//var check = (treeNode && !treeNode.isParent);只选择文件夹下面的
            if (!check) alert("请选择具体的组织机构");
            return check;
        }
        
        function onClick(e, treeId, treeNode) {
            var zTree = $.fn.zTree.getZTreeObj("treeDemo"),
            nodes = zTree.getSelectedNodes(),
            v = "";
            o = "";
            nodes.sort(function compare(a,b){return a.id-b.id;});
            for (var i=0, l=nodes.length; i<l; i++) {
                v += nodes[i].name + ",";
                o += nodes[i].id + ",";
            }
            if (v.length > 0 ) v = v.substring(0, v.length-1);
            if (o.length > 0 ) o = o.substring(0, o.length-1);
            var cityObj = $("#citySel");
            var orgId = $("#orgId");
            orgId.attr("value",o);
            cityObj.attr("value", v);
            hideMenu();
        }
        function showMenu() {
            if(!treeIsLoad){
                showOrgTree();
            }    
            var cityObj = $("#citySel");
            var cityOffset = $("#citySel").offset();
            $("#menuContent").css({left:cityOffset.left + "px", top:cityOffset.top + cityObj.outerHeight() + "px"}).slideDown("fast");

            $("body").bind("mousedown", onBodyDown);
        }
        function hideMenu() {
            $("#menuContent").fadeOut("fast");
            $("body").unbind("mousedown", onBodyDown);
        }
        function onBodyDown(event) {
            if (!(event.target.id == "citySel" || event.target.id == "menuContent" || $(event.target).parents("#menuContent").length>0)) {
                hideMenu();
            }
        }
        function showOrgTree(){
            treeIsLoad = true;
            var setting = {
                treeId:"orgTree",
	            view: {
	                dblClickExpand: false
	            },
	            data: {
	                simpleData: {
	                    enable: true
	                }
	            },
	            callback: {
	                beforeClick: beforeClick,
	                onClick: onClick
	            }
	     };
         var zNodes;
         $.ajax({  
                url : "<%=request.getContextPath()%>/organization/searchAllOrg.action",  
                type : "post", 
                dataType : "json",  
                cache : false,  
                async:false,
                error : function(textStatus, errorThrown) {  
                    alert("系统ajax交互错误: " + textStatus.value);  
                },  
                success : function(data, textStatus) {
                   zNodes = data;
                   $.fn.zTree.init($("#treeDemo"), setting,zNodes);
                } 
            });             
        } 
		/**
		 * 选择文件后给隐藏域赋值，作用不明
		 */
		function toType(){
		    var upFile = document.getElementById("idFile");
		    var upFile_type = document.getElementById("upFile_type");
		    upFile_type.value = upFile.value;
		}
		 function chooseData(tableName,columnName,cnName,queryColumnCnname,queryColumn,flag){
				var result=window.showModalDialog("<%=request.getContextPath() %>/resource/choose/choose_list.jsp?tableName="+tableName+"&columnName="+columnName+"&cnName="+encodeURIComponent(encodeURIComponent(cnName))+"&queryColumnCnname="+encodeURIComponent(encodeURIComponent(queryColumnCnname))+"&queryColumn="+queryColumn+"&temp="+new Date(), '', "dialogWidth:550px;status:no;dialogHeight:370px");
				if(result){
					result = eval('(' + result + ')');
					if(flag==0){
						document.getElementById("educationId").value=result['ID'];
					    document.getElementById("education").value=result['T_XUELI'];
					}else if(flag==1){
						document.getElementById("professionalId").value=result['ID'];
					    document.getElementById("professional").value=result['T_ZHICHENG'];
					}else if(flag==2){
						document.getElementById("politicalStatusId").value=result['ID'];
					    document.getElementById("politicalStatus").value=result['T_ZHENGZHI'];
					}
					
				}
        }
		/**
		 * 根据选择的文件截取文件名称，并赋值给文件名称输入框
		 */
		function getfilename(){
		    var upFile = document.getElementById("idFile");
		    var fileName = document.getElementById("fileName");
		    var sfv = upFile.value.split('\\');
		    $("#upFile_type").val(sfv[sfv.length-1]);
		    if(fileName.value!=null&&fileName.value!=''){
		        return;
		    }else{
		        fileName.value = sfv[sfv.length-1];
		    }
		}
		
		//字符限制
			function countlen(textarea){
			    if (textarea.value.length> 250){
			        alert("最多为250个字符,字符输入超出限制!");
			        textarea.value=textarea.value.substring(0,250);
			    }
			    return true;
			}
			
			function chooseData(tableName,columnName,cnName,queryColumnCnname,queryColumn,flag){
				var result=window.showModalDialog("<%=request.getContextPath() %>/resource/choose/choose_list.jsp?tableName="+tableName+"&columnName="+columnName+"&cnName="+encodeURIComponent(encodeURIComponent(cnName))+"&queryColumnCnname="+encodeURIComponent(encodeURIComponent(queryColumnCnname))+"&queryColumn="+queryColumn+"&temp="+new Date(), '', "dialogWidth:550px;status:no;dialogHeight:370px");
				if(result){
					result = eval('(' + result + ')');
					if(flag=='xueli'){
						document.getElementById("xueliid").value=result['ID'];
					    document.getElementById("xueliname").value=result['XUELINAME'];
					}else if(flag=='zhiwu'){
						document.getElementById("zhiwuid").value=result['ID'];
					    document.getElementById("zhiwuname").value=result['ZHIWUMC'];
					}else if(flag=='zhicheng'){
						document.getElementById("zhichengid").value=result['ID'];
					    document.getElementById("zhichengname").value=result['ZHICHENGMC'];
					}else if(flag=='shemidj'){
						document.getElementById("shemidjid").value=result['ID'];
					    document.getElementById("shemidjname").value=result['SHEMIDJMC'];
					}
				}
        }
    </script>
	</head>
	<body class="fontbody">
		<form action="" id="pageFrom" method="post" enctype="MULTIPART/FORM-DATA">
			<input type="hidden" id="id" name="user.userid" value="<s:property value="user.userid" />" />
            <table border="0" cellpadding="4" width="100%" cellspacing="1"   align="center">
				<tr>
					<td width="145" class="td_label">
						<label for="loginname">
							用&nbsp;户&nbsp;&nbsp;名：
						</label>
					</td>
					<td width="327" class="td_value">
						&nbsp;<input type="text" id="loginname" name="loginname"
							style="width: 250px;" />
							 
						<!--<img src="<%=request.getContextPath()%>/images/xh.png"></img> -->
					</td>
					<td rowspan="4"  valign="top" bgcolor="#FFFFFF" width="271">
						&nbsp;<span style="margin-left:70px;">头像</span>
						<div style="width:120px; height:120px; border:1px solid #666; margin-left:30px;">
						  <img id="idImg" src="<%=request.getContextPath() %>/images/insertpicture.png"/>
						</div>
					</td>
				</tr>
				<tr>
					<td class="td_label">
						<label for="username">
							姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：
						</label>
					</td>
					<td class="td_value">
						&nbsp;<input type="text" id="username" name="users.username"
							style="width: 250px;" />
						<img src="<%=request.getContextPath()%>/images/xh.png"></img>
					</td>
				</tr>
				<tr>
					<td class="td_label">
						<label for="username">
							性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：
						</label>
					</td>
					<td class="td_value">
						&nbsp;<select name="users.sex" id="sex" style="width: 255px;">
							<option value="">
								请选择
							</option>
							<option value="1" selected>男</option>
							<option value="0">女</option>
						</select>
					</td>
				</tr>
				<tr>
					<td class="td_label">
						<label for="fixedPhone2">
							单位电话：
						</label>
					</td>
					<td class="td_value">
						&nbsp;<input type="text" id="companyTel" name="users.companyTel"
							style="width: 250px;" />

					</td>
				</tr>
				<tr>
					<td class="td_label">
						<label for="fixedPhone3">
							家庭电话：
						</label>
					</td>
					<td class="td_value">
						&nbsp;<input type="text" id="fixedPhone" name="users.fixedPhone"
							style="width: 250px;" />
					</td>
					<td bgcolor="#FFFFFF">
						<input id="idFile" name="uploadImg" type="file" style="width: 120px;" />
					</td>
				</tr>
				<tr>
					<td class="td_label">
						移动电话：
					</td>
					<td class="td_value">
						&nbsp;<input type="text" id="mobile" name="users.mobile"
							style="width: 250px;" />
					</td>
					<td rowspan="4" valign="top" bgcolor="#FFFFFF" width="271">
                    &nbsp;<span style="margin-left:70px;">签名</span>
						<div style="width:120px; height:120px; border:1px solid #666; margin-left:30px;">
						   <img alt="" id="signImg" src="<%=request.getContextPath() %>/images/insertpicture.png"  />
						</div>
                   </td>
				</tr>
				<tr>
					<td class="td_label">
						电子邮件：
					</td>
					<td class="td_value">
						&nbsp;<input type="text" id="email" name="users.email"
							style="width: 250px;" />
					</td>
				</tr>
				<tr>
					 <td class="td_label">
                            办公地址：
                  </td>
                        <td  bgcolor="#FFFFFF">
                          &nbsp;<input type="text" id="address" name="users.address"  style="width: 250px;"/>
                        </td>
                </tr>		
				<tr>
					<td class="td_label">
						<label for="activeLabel2">
							用户状态：
						</label>
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<select name="users.active" id="active" style="width: 255px;">
							<option value="1" selected="selected">有效</option>
							<option value="0">外出试验</option>
						</select>
						<img src="<%=request.getContextPath()%>/images/xh.png" alt="" />
					</td>
				</tr>
				<tr>
					<td class="td_label">
						所属角色：
					</td>
					<td class="td_value">
						<input type="hidden" id="roleIdStr" name="roleIdStr" />
						&nbsp;<input type="text" id="rolename" onclick="selectRole();" readonly
							name="rolename" style="width: 250px;" value="" />
						<!--<img src="<%=request.getContextPath()%>/images/xh.png"></img>-->
					</td>
					   <!-- <img
							src="/commission/images/accessories-magnifier.png"
							style="cursor: hand; vertical-align: middle;"
							onclick="selectRole();"></img>  -->
					</td>
					<td class="td_value"><input id="signFile" name="uploadSign" type="file" style="width: 120px;" /></td>
				</tr>
				<tr>
					<td class="td_label">
						<label for="securityClass2">
							可用密级：
						</label>
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<select name="users.securityClass" id="securityClass"
							style="width: 255px;">
							<option value="">请选择</option>
							<option value="1" selected="selected">非密</option>
							<option value="2">内部</option>
							<option value="5">一般密级</option>
							<option value="3">秘密</option>
							<option value="4">机密</option>
						</select>
						<img src="<%=request.getContextPath()%>/images/xh.png" alt="" />
					</td>
				</tr>
				<tr>
					<td class="td_label">
						所属组织：
					</td>
					<td  bgcolor="#FFFFFF">
                          &nbsp;<input type="text" id="orgName" name="orgName" value="${organization.orgName}" style="width: 250px;" readonly="readonly" onkeydown="if(event.keyCode==8)return false;"/>
                     </td>
				</tr>
				<tr>
					<td class="td_label">
						<label for="jobName">
							岗位名称：
						</label>
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<input type="text" id="jobName" name="users.jobName" style="width: 250px;" />
					</td>
				</tr>	
				<tr>
					<td class="td_label">
						入职时间：
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<input type='text' name='users.entryDate' id='entryDate'  value="" class='Wdate' onClick='WdatePicker();' style="width:250px;"  onchange="changeDate();"></input>
					</td>
				</tr>
				<tr>
					<td class="td_label">
						工作年限：
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<input type="text" id="workYears" name="users.workYears" style="width:250px;" readonly="readonly"/>
					</td>
				</tr>
				
				<tr>
					<td class="td_label">
						所学专业：
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<input type="text" id="yourMajor" name="users.yourMajor" style="width: 250px;" />
					</td>
				</tr>
				<tr>
					<td class="td_label">
						年龄：
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<input type="text" id="age" name="users.age" style="width: 250px;" />
					</td>
				</tr>
				<tr>
					<td class="td_label">
						学历：
					</td>
					<td colspan="2" class="td_value"><input type="hidden" id="xueliid" name="xueliid"/>
						&nbsp;<input type="text" id="xueliname" name="xueliname" style="width: 250px;" readonly="readonly" />
						<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" width="23" height="23" border="0" onclick="chooseData('KL_XUELI','ID,XUELINAME','主键,学历','学历','XUELINAME','xueli');" title="选择" style="cursor:hand;" />
		    
					</td>
				</tr>
				<tr>
					<td class="td_label">
						职务：
					</td>
					<td colspan="2" class="td_value"><input type="hidden" id="zhiwuid" name="zhiwuid"/>
						&nbsp;<input type="text" id="zhiwuname" name="zhiwuname" style="width: 250px;" readonly="readonly" />
						<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" width="23" height="23" border="0" onclick="chooseData('KL_ZHIWU','ID,ZHIWUMC','主键,职务','职务','ZHIWUMC','zhiwu');" title="选择" style="cursor:hand;" />
		    
					</td>
				</tr>
				<tr>
					<td class="td_label">
						职称：
					</td>
					<td colspan="2" class="td_value"><input type="hidden" id="zhichengid" name="zhichengid"/>
						&nbsp;<input type="text" id="zhichengname" name="zhichengname" style="width: 250px;" readonly="readonly" />
						<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" width="23" height="23" border="0" onclick="chooseData('KL_ZHICHENG','ID,ZHICHENGMC','主键,职称','职称','ZHICHENGMC','zhicheng');" title="选择" style="cursor:hand;" />
		    
					</td>
				</tr>
				<tr>
					<td class="td_label">
						涉密等级：
					</td>
					<td colspan="2" class="td_value"><input type="hidden" id="shemidjid" name="shemidjid"/>
						&nbsp;<input type="text" id="shemidjname" name="shemidjname" style="width: 250px;" readonly="readonly" value="<s:property value='users.shemidjname'/>"/>
						<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" width="23" height="23" border="0" onclick="chooseData('KL_SHEMIDJ','ID,SHEMIDJMC','主键,涉密等级','涉密等级','SHEMIDJMC','shemidj');" title="选择" style="cursor:hand;" />
		    
					</td>
				</tr>
 
				<tr>
					<td class="td_label">
						用户描述：
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<textarea rows="5" cols="34" id="userdesc" name="users.userdesc" onkeydown="countlen(this);"></textarea>
					</td>
				</tr>
				<tr>
					<td class="td_label">&nbsp;
						
					</td>
					<td colspan="2" bgcolor="#FFFFFF">&nbsp;
						
					</td>
				</tr>
				<tr>
					<td colspan="3"
						style=" text-align: center; height: 20px; font-size: 15px; font-weight: bold;">
						<input id="submitBtn" type="button" class="button_b" value="保存"  id="submitBtn"/>
						<input id="cancelBtn" type="button" class="button_b" value="取消 "/>
					</td>
				</tr>
			</table> 
		</form>
	</body>
</html>
